﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Shop.Models
{
    public class Product
    {
        public int Id { get; set; }
        [Required]
        [RegularExpression(@"(\d*).(\d*)", ErrorMessage = "Example 39.92")]
        [Display(Name = "Product price")]
        public decimal Price { get; set; }
        [Required]
        [Display(Name = "Product name")]
        public string Name { get; set; }

        public string Description { get; set; }

        public ICollection<Entity.Categories.Category> Categories { get; set; }
    }
}